package com.oneday.nuo.base.tactics.token;

import com.oneday.nuo.base.security.user.NuoUser;

/**
 * 用户认证接口
 **/
public interface TokenTactics {
     /**
      * 设置token
      * @Author: liushuai
      * @Date: 2021/4/20 22:59
      * @param : * @param user
      * @return :com.oneday.nuo.base.security.user.NuoUser
      **/
     NuoUser setToken(NuoUser user);
     /**
      * 验证token
      * @Author: liushuai
      * @Date: 2021/4/20 22:58
      * @param : * @param token
      * @return :com.oneday.nuo.base.security.user.NuoUser
      **/
     void verify(String token);

     NuoUser setUser(NuoUser user);
     /**
      * 认证退出
      * @Author: liushuai
      * @Date: 2021/4/21 22:46
      * @param : * @param
      * @return :void
      **/
     void exitLogin(NuoUser user);
}
